import pandas as pd

# 读取 Excel 文件
file_path = 'testEx.xlsx'
try:
    df = pd.read_excel(file_path)
    print('Basic information:')
    df.info()
    rows, columns = df.shape
    print(f"行数: {rows}, 列数: {columns}")
    print('数据全部内容信息：')
    print(df.to_csv(sep='\t', na_rep='null'))
except FileNotFoundError:
    print(f"未找到文件: {file_path}")
except Exception as e:
    print(f"读取文件时出现错误: {e}")